home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / nyword23.zip / PRINTER.DOC < prev    next >
Text File  |  1987-05-28  |  5KB  |  107 lines

  1.                          CONFIGURING YOUR PRINTER
  2.  
  3.      When  NYWord  starts  up,  it  searches  your  disk  for  a file named
  4. WPPRMENU. This file contains the default settings that will be used in  the
  5. printer  menu that is displayed whe you print a document. The first line of
  6. WPPRMENU contains the name of your printer. This name should  be  the  same
  7. name  as the PRT file you use, MINUS the ".prt" extension. For instance, if
  8. I have an EPSON FX-80 printer, I want to use the EPSON.PRT file which comes
  9. with NYWord. Therefore, the first  line  of  my  WPPRMENU  file  should  be
  10. "epson".  If you want to use a different PRT file, change the first line of
  11. the WPPRMENU file and SAVE IT IN ASCII!!!! 
  12.  
  13.       A "PRT" file contains a list of control sequences which NYWord  sends
  14. to  your  printer  in  order to print effects like underlining, boldfacing,
  15. etc. An entry in the PRT file consists of a two letter sequence,  an  equal
  16. sign,  and  a  control string. If you modify this file, you must SAVE IT IN
  17. ASCII!!! NYWord comes with a file called SKELETON.PRT  which  serves  as  a
  18. template  for  creating  new  PRT  files.  NYWord also comes with a program
  19. called NYWPRT.EXE. This program is a form based program for  modifying  and
  20. creating PRT files. 
  21.  
  22. CONTROL STRINGS
  23.  
  24.       A control string is a list of one or more bytes which must be sent
  25. to your printer in order to have your printer perform certain actions.
  26. Because your printer often needs control bytes which are not printable on
  27. your screen, we use a certain notation to specify these characters.
  28.  
  29.       In addition to specifying regular characters, you can have the following
  30. codes in your control string :
  31.  
  32.      ^A-^Z      - sends <CTRL> A through <CTRL> Z  (ASCII 1 thru 26)
  33.      ^[, ^\, ^], ^^, ^_    decimal 27, 28, 29, 30, 31
  34.      
  35.      \nnn       - sends the decimal value nnn. For instance, \234 sends the
  36.                   value 234 to the printer. 'nnn' can be up to 3 digits,
  37.  
  38.      \E         - sends the ESCAPE character (ASCII 27)
  39.      \b         - sends a backspace (ASCII 8)
  40.      \Z         - sends a zero (ASCII 0)
  41.      \\         - sends a backslash
  42.  
  43. As  an  example, let's examine the control string that NYWord sends to
  44. an EPSON printer in order to turn underlining on and off. We have  the
  45. following two lines in the EPSON.PRT file :
  46.  
  47.     us=\E-\1
  48.     ue=\E-\Z
  49.  
  50.     The  "us"  parameter  means "underline start". The bytes we send to the
  51. EPSON to turn underlining on are an ESCAPE (\E), a minus sign (-), and  the
  52. ASCII value 1 (\1). To turn underlining off, we send ESCAPE, minus, ASCII 0
  53. (\Z). 
  54.  
  55.     As  another  example,  the  control string \E1G^F\237 would send to the
  56. printer a decimal 27,  decimal  49  ('1'),  decimal  71  ('G'),  decimal  6
  57. (^F), and decimal 237 
  58.  
  59.  
  60. FONT INFORMATION
  61.  
  62. You  You  can  have a choice of 26 fonts, labelled 'a' through 'z'. The two
  63. letter sequence for a font starts with the letter 'F' followed by the small
  64. letter label. For example, the sequence "Fb=\E&(Osl"  defines  the  control
  65. sequence that's sent to the printer to change to font 'b'. 
  66.  
  67.     If  your printer is capable of less than 26 fonts, then just define the
  68. fonts needed. You do not need to label the fonts starting with  the  letter
  69. 'a'. For instance if your printer can only print italics and no other font,
  70. you  can  define "Fi" to be the control code to put your printer in italics
  71. mode. When you enable the font by using <EFFECTS>  then  respond  with  the
  72. letter 'i' when asked for the name of the font. 
  73.  
  74. HOW TO PRINT LINE GRAPHICS
  75.  
  76.     The  <GRAPHICS  MODE>  command  (the <CTRL> G key) puts you into a mode
  77. where you can draw line graphics. There are 11 different  graphics  charac-
  78. ters  that you can print out. NYWord uses fonts A through K (that's capital
  79. A through K) to contain  the  control  sequences  which  draws  these  line
  80. graphics  on  your  printer.  The  following table lists the correspondence
  81. between the two letter parameters and the line graphic  which  the  control
  82. sequence draws :
  83.  
  84.                 FA - top left corner
  85.                 FB - top right corner
  86.                 FC - botton left corner
  87.                 FD - bottom right corner
  88.                 FE - horizontal line
  89.                 FF - vertical line
  90.                 FG - intersection
  91.                 FH - top tee
  92.                 FI - bottom tee
  93.                 FJ - left tee
  94.                 FK - right tee
  95.  
  96.     Some  printers (or some memory resident programs) let you print the IBM
  97. extended  ASCII  character  set.  If  yours does, then all that needs to be
  98. specified in each control sequence is the ASCII value of the  graphic.  For
  99. instance,  the  extended  ASCII  character 180 is the right tee graphic. In
  100. this case, you would have the line "FK=\180" in your PRT file.
  101.  
  102. HELP
  103.  
  104.     If you are desperate, MAGMA SYSTEMS will configure your printer for you
  105. for a modest fee. Contact us for details.
  106.  
  107.